package com.itcast.springboot.waste_recovery.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 用户地址表
 * </p>
 *
 * @author 小破烂
 * @since 2020-08-19
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="UserAddress对象", description="用户地址表")
public class UserAddress implements Serializable {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "地址id")
      @TableId(value = "address_id", type = IdType.AUTO)
    private Integer addressId;

    @ApiModelProperty(value = "地址所属用户id")
    private Integer addressUserId;

    @ApiModelProperty(value = "定位地址")
    private String location;

    @ApiModelProperty(value = "用户地址")
    private String address;

    @ApiModelProperty(value = "是否为默认地址")
    private Boolean addressIsDefault;

    @ApiModelProperty(value = "收货人电话")
    private String addressReceivePhone;

    @ApiModelProperty(value = "收货人姓名")
    private String addressReceiveName;
}
